package com.odm.communitymanage.core.net;


import io.reactivex.Observable;
import okhttp3.RequestBody;
import rxhttp.wrapper.annotation.DefaultDomain;

/**
 * @description: Retrofit 网络请求接口定义类
 * @author: ODM
 * @date: 2020/4/7
 */
public interface ApiService {

     @DefaultDomain
     String BASE_URL = "http://47.102.125.28:6666/";

     /**
      * 求助模块
      */
     public static final String MY_UNSOLVED_SEEK_HELP = "help/getMyUnsolved";
     public static final String MY_SOLVED_SEEK_HELP = "help/getMyResolved";
     public static final String POST_SEEK_HELP = "help/post";
     public static final String ALL_SEEK_HELP = "help/getAll";
     public static final String COMPLETE_MY_SEEK_HELP = "help/resolved";

     /**
      * 闲置模块
      * 返回数据中 status 0 表示正在出售     1 表示交易成功
      */
     public static final String ALL_IDLE_LIST_NEWEST = "idle/getAll/0";
     public static final String ALL_IDLE_LIST_DOWN = "idle/getAll/1";
     public static final String ALL_IDLE_LIST_UP = "idle/getAll/2";

     public static final String MY_IDLE_LIST = "idle/getMyIdle";
     public static final String POST_MY_IDLE = "idle/post";
     public static final String COMPLETE_IDLE = "idle/changeStatus";
     public static final String FIND_IDLE = "idle/find";


     /**
      * 投诉模块
      */
     public static final String POST_MY_COMPLAINT = "complaint/post";
     public static final String EVALUATE_MY_COMPLAINT = "complaint/evaluate";
     public static final String MY_COMPLAINT_LIST = "complaint/getAll";

     /**
      * 报修模块
      */
     public static final String POST_MY_REPAIR = "repair/post";
     public static final String EVALUATE_MY_REPAIR = "repair/evaluate";
     public static final String MY_REPAIR_UNTAKEN = "repair/getMyRepair/0";
     public static final String MY_REPAIR_PROCESSING = "repair/getMyRepair/1";
     public static final String MY_REPAIR_COMPLETED = "repair/getMyRepair/2";

     /**
      * 缴费模块
      */
     public static final String EXPENSE_ALL = "expense/getAll";


     /**
      * 用户登录注册 模块
      */
     public static final String LOGIN = "user/login";
     public static final String REGISTER  = "user/register";
     public static final String  UPDATE_USER_INFO = "user/update";
     /**
      * 以下为例子，发送验证码格式一定要为 /checkCode/手机号/验证码(可随便填写)。目前服务端检验手机号
      */
     public static final String GET_CHECK_CODE = "user/checkCode/";

     /**
      * 活动模块
      */
     public static final String ALL_ACTIVITY = "activity/getList";
     public static final String POST_ACTIVITY = "activity/post";
     public static final String SEARCH_ACTIVITY = "activity/find";
     public static final String SIGN_UP_ACTIVITY = "activity/signUp";
     public static final String MY_POST_ACTIVITY = "activity/getMyActivity/0";
     public static final String MY_SIGN_UP_ACTIVITY = "activity/getMyActivity/1";
     public static final String FINISH_MY_ACTIVITY = "activity/stop";




//    @GET("https://oss.mapmiao.com/others/ncov/data.json?timestamp=999999999999999")
//    Observable<ResponseBody> getPoisArea();

//
//    /**
//     * 根据单日日期，获取此日期的热力图数据
//     * @param timeString 表示日期的字符串
//     * @return 热力图数据
//     */
//    @GET("api/student/heatMap")
//    Observable<HeatMapData> getHeatMapData(@Query("time") String timeString);
//
//    /**
//     * 迁移数据搜索（包括搜索某段时间的全部迁移学生和搜索某段时间内某个学生）
//     * @return 搜索结果
//     */
//    @Headers({"Content-Type: application/json","Accept: application/json"})
//    @POST("api/student/migrate")
//    Observable<TwoOrMoreData> getSearchResultData(@Body RequestBody info);
//    /**
//     * 根据请求调用登录api
//     * @param loginRequestBody 登录请求Body
//     * @return 登录回调
//     */
//    @Headers({"Content-type:application/json;charset=UTF-8"})
//    @POST("api/user/login")
//    Observable<LoginCallback> postLoginRequest(@Body RequestBody loginRequestBody);
//
//    /**
//     * 根据请求Post调用获取未打卡情况数据
//     * @param timeIntervalRequestBody 请求未打卡情况Body
//     * @return 未打卡情况回调
//     */
//    @Headers({"Content-type:application/json;charset=UTF-8"})
//    @POST("api/student/clock")
//    Observable<UnFinishSituation> postUnFinishSituationRequest(@Body RequestBody timeIntervalRequestBody);
}
